package cn.com.headfree.point.service.impl;

import cn.com.headfree.entity.TRuleProjectInfo;
import cn.com.headfree.point.dao.PointRuleDao;
import cn.com.headfree.point.dao.RuleProjectDao;
import cn.com.headfree.point.service.RuleElementService;
import cn.com.headfree.point.service.RuleProjectService;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service("ruleProjectService")
@Transactional
public class RuleProjectServiceImpl implements RuleProjectService {

	private static final Logger log = LogManager.getLogger(RuleProjectServiceImpl.class);

	@Autowired
	private RuleProjectDao ruleProjectDao;

	@Override
	public List<TRuleProjectInfo> findProjectInfoListByPid(String pId,String orgId) {
		return ruleProjectDao.findProjectInfoListByPid(pId,orgId);
	}
}
